package com.andia.app.browser;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class OpenShell {

	Shell shell = null;

	ToolBrowser toolBrowser = null;

	MiniBrowser miniBrowser = null;

	OpenMenuBar openMenuBar = null;

	/**
	 * Membuat tampilan display
	 * 
	 * @param display
	 */
	void createShell(Display display) {
		shell = new Shell(display);
		shell.setText("Mini Browser");
	}

	public Shell openShell(Display display) {
		createShell(display);
		
		// Class MiniBrowser
		miniBrowser = new MiniBrowser(shell);
		miniBrowser.createBrowser();
		miniBrowser.createComposite();

		// Class Toolbar
		toolBrowser = new ToolBrowser(shell);
		toolBrowser.createToolBar(display);

		openMenuBar = new OpenMenuBar(shell);
		openMenuBar.createMenuBarMain();

	

		shell.open();
		shell.setSize(650, 450);
		return shell;
	}

}
